﻿//-----------------------------------------------------------------------
// <copyright file="IDataServiceable.cs" company="Craig Longford">
//     Copyright (c) Craig Longford. All rights reserved.
//     Email: deltawolf7@gmail.com
//     WWW: http://www.deltasblog.co.uk
// </copyright>
//-----------------------------------------------------------------------

namespace Delta.Data.DataExpress
{
    using System.Data;

    /// <summary>
    /// Used to flag an object as fillable by the data access layer.
    /// </summary>
    public interface IDataServiceable
    {
        /// <summary>
        /// Fills the object from a data source
        /// </summary>
        /// <param name="reader">Reader returned from data source</param>
        void Fill(IDataReader reader);

       /// <summary>
       /// Set save parameters
       /// </summary>
       /// <returns>Parameters for saving the object</returns>
        Parameters GetSaveParameters();
    }
}
